]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Telepathy: lookup PATH when launching empathy-accounts
authorGiovanni Campagna <gcampagna@src.gnome.org>
Fri, 11 Jan 2013 14:56:28 +0000 (15:56 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Fri, 11 Jan 2013 15:27:53 +0000 (16:27 +0100)
It might be installed only in the jhbuild path.

https://bugzilla.gnome.org/show_bug.cgi?id=691553

js/ui/components/telepathyClient.js

index 8ebcd2a41b6b8072f7e74e56eb13ef5629bdbde8..440655c584f12d984e6a46b719ecdff8960e03af 100644 (file)
@@ -1346,9 +1346,8 @@ const AccountNotification = new Lang.Class({
         this.connect('action-invoked', Lang.bind(this, function(self, action) {
             switch (action) {
             case 'view':
-                let cmd = '/usr/bin/empathy-accounts'
-                        + ' --select-account=%s'
-                        .format(account.get_path_suffix());
+                let cmd = 'empathy-accounts --select-account=' +
+                          account.get_path_suffix();
                 let app_info = Gio.app_info_create_from_commandline(cmd, null, 0);
                 app_info.launch([], global.create_app_launch_context());
                 break;